#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
const int N=1e5+5;
#define P pair<int,int>
#define px first
#define py second
int n,a[N];
signed main(){
    freopen("duel.in","r",stdin);
    freopen("duel.out","w",stdout);
    scanf("%d",&n);
    for(int i=1;i<=n;i++) scanf("%d",&a[i]);
    sort(a+1,a+n+1);
    int i=1;
    for(int j=2;j<=n;j++) if(a[i]<a[j]) ++i;
    printf("%d",n-i+1);
    return 0;
}
